﻿<%@ Page Language="C#" MasterPageFile="~/provider/TravelInsurance/TravelInsurance.master"
    Title="Add/Edit Travel Insurance" AutoEventWireup="true" CodeFile="AddNewTravelInsurance.aspx.cs"
    Inherits="Provider_TravelInsurance_AddNewTravelInsurance" MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Travel Insurance</h1>
        <asp:Label ID="lblTAId" runat="server" Visible="false" Text="0"></asp:Label>
        <asp:DropDownList ID="ddlProviderCompanyName" runat="server" AutoPostBack="false"
            Width="250px" Visible="false">
        </asp:DropDownList>
        <fieldset>
            <dl>
                <dt>
                    <label>
                        Policy/Plan Type</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlPolicyType" runat="server" class="text" Width="250px">
                        <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="Individual">Individual</asp:ListItem>
                        <asp:ListItem Value="IndividualSpouse">Individual + Spouse</asp:ListItem>
                        <asp:ListItem Value="IndividualChild">Individual + Child</asp:ListItem>
                        <asp:ListItem Value="Family">Family</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvPolicyType" runat="server" ErrorMessage="Select policy/plan type."
                        ControlToValidate="ddlPolicyType" InitialValue="-1"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <%--<dl>
                <dt>
                    <label>
                        Level of Coverage</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlLevelOfCoverage" runat="server" class="text" Width="250px" >
                        <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="STD">Standard Cover</asp:ListItem>
                        <asp:ListItem Value="MED">Medium Cover</asp:ListItem>
                        <asp:ListItem Value="HGH">High Cover</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvLevelOfCoverage" runat="server" ErrorMessage="Select coverage level."
                        ControlToValidate="ddlLevelOfCoverage" InitialValue="-1"></asp:RequiredFieldValidator>
                </dd>
            </dl>--%>
            <dl>
                <dt>
                    <label>
                        Plan Name</label></dt>
                <dd>
                    <asp:TextBox ID="txtPlanName" runat="server" MaxLength="150" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPlanName" runat="server" ControlToValidate="txtPlanName"
                        ErrorMessage="Enter plan name."></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Personal Accident (adult)</label></dt>
                <dd>
                    <asp:TextBox ID="txtAdultLess70" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAdultLess70" runat="server" ControlToValidate="txtAdultLess70"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revAdultLess70" runat="server" ControlToValidate="txtAdultLess70"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Personal Accident (> 70)</label></dt>
                <dd>
                    <asp:TextBox ID="txtAdultAbove70" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAdultAbove70" runat="server" ControlToValidate="txtAdultAbove70"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revAdulatAbove70" runat="server" ControlToValidate="txtAdultAbove70"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Double Indemnity for Public Conveyance</label></dt>
                <dd>
                    <asp:CheckBox ID="cbDFPT" runat="server" />
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Double Indemnity for Public Conveyance (adult)</label></dt>
                <dd>
                    <asp:TextBox ID="txtDIPCLess70" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvDIPCLess70" runat="server" ControlToValidate="txtDIPCLess70"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revDIPCLess70" runat="server" ControlToValidate="txtDIPCLess70"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Double Indemnity for Public Conveyance (> 70)</label></dt>
                <dd>
                    <asp:TextBox ID="txtDIPCAbove70" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvDIPCAbove70" runat="server" ControlToValidate="txtDIPCAbove70"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revDIPCAbove70" runat="server" ControlToValidate="txtDIPCAbove70"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Medical Expenses (adult)</label></dt>
                <dd>
                    <asp:TextBox ID="txtMedExpLess70" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvMedExpLess70" runat="server" ControlToValidate="txtMedExpLess70"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revMedExpLess70" runat="server" ControlToValidate="txtMedExpLess70"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Medical Expenses (> 70)</label></dt>
                <dd>
                    <asp:TextBox ID="txtMedExpAbove70" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvMedExpAbove70" runat="server" ControlToValidate="txtMedExpAbove70"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revMedExpAbove70" runat="server" ControlToValidate="txtMedExpAbove70"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Emergency Medical Evacuation</label></dt>
                <dd>
                    <asp:CheckBox ID="cbMedicalEvac" runat="server" AutoPostBack="true" OnCheckedChanged="ShowEmergencyMed" />as
                    charged?
                    <asp:TextBox ID="txtEmergencyMed" runat="server" MaxLength="20" Width="157px" Visible="true"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvEmergencyMed" runat="server" ControlToValidate="txtEmergencyMed"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revEmergencyMed" runat="server" ControlToValidate="txtEmergencyMed"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Repatriation & Funeral Expenses</label></dt>
                <dd>
                    <asp:CheckBox ID="cbRepatriation" runat="server" AutoPostBack="true" OnCheckedChanged="ShowRepatriation" />as
                    charged?
                    <asp:TextBox ID="txtBurial" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvBurial" runat="server" ControlToValidate="txtBurial"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revBurial" runat="server" ControlToValidate="txtBurial"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Hospital Income</label></dt>
                <dd>
                    $
                    <asp:TextBox ID="txtHospitalInc" runat="server" MaxLength="20" Width="70px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvHospitalInc" runat="server" ControlToValidate="txtHospitalInc"
                        ErrorMessage="*" Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revHospitalInc" runat="server" ControlToValidate="txtHospitalInc"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                    /day max $
                    <asp:TextBox ID="txtHospitanIncMax" runat="server" MaxLength="20" Width="70px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHospitanIncMax"
                        ErrorMessage="*" Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtHospitanIncMax"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Pregnancy-related Illness</label></dt>
                <dd>
                    <asp:TextBox ID="txtPregnancy" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPregnancy" runat="server" ControlToValidate="txtPregnancy"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revPregnancy" runat="server" ControlToValidate="txtPregnancy"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Overseas Compassionate Visit</label></dt>
                <dd>
                    <asp:TextBox ID="txtCompassionVisit" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCompassionVisit" runat="server" ControlToValidate="txtCompassionVisit"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revCompassionVisit" runat="server" ControlToValidate="txtCompassionVisit"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Child Guard</label></dt>
                <dd>
                    <asp:TextBox ID="txtChildCare" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvChildCare" runat="server" ControlToValidate="txtChildCare"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revChildCare" runat="server" ControlToValidate="txtChildCare"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Personal Liability</label></dt>
                <dd>
                    <asp:TextBox ID="txtPersonalLiability" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPersonalLiability" runat="server" ControlToValidate="txtPersonalLiability"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revPersonalLiability" runat="server" ControlToValidate="txtPersonalLiability"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Loss Baggage & Personal Effect</label></dt>
                <dd>
                    <asp:TextBox ID="txtBaggagePerEffect" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvBaggagePerEffect" runat="server" ControlToValidate="txtBaggagePerEffect"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revBaggagePerEffect" runat="server" ControlToValidate="txtBaggagePerEffect"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Overseas Baggage Delay</label></dt>
                <dd>
                    $
                    <asp:TextBox ID="txtBaggageDelay" runat="server" MaxLength="20" Width="60px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvBaggageDelay" runat="server" ControlToValidate="txtBaggageDelay"
                        Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revBaggageDelay" runat="server" ControlToValidate="txtBaggageDelay"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                    /
                    <asp:TextBox ID="txtBaggageHour" runat="server" MaxLength="2" Width="20px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtBaggageHour"
                        Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtBaggageHour"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                    -hour delay max $
                    <asp:TextBox ID="txtBaggageMax" runat="server" MaxLength="20" Width="60px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtBaggageMax"
                        Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtBaggageMax"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Trip Cancellation</label></dt>
                <dd>
                    <asp:TextBox ID="txtDepositTripCancel" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvDepositTripCancel" runat="server" ControlToValidate="txtDepositTripCancel"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revDepositTripCancel" runat="server" ControlToValidate="txtDepositTripCancel"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Trip Curtailment</label></dt>
                <dd>
                    <asp:TextBox ID="txtCurtailment" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCurtailment" runat="server" ControlToValidate="txtCurtailment"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revCurtailment" runat="server" ControlToValidate="txtCurtailment"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Overseas Travel Delay</label></dt>
                <dd>
                    <asp:TextBox ID="txtTravelDelay" runat="server" MaxLength="20" Width="60px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvTravelDelay" runat="server" ControlToValidate="txtTravelDelay"
                        Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revtravelDelay" runat="server" ControlToValidate="txtTravelDelay"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                    /
                    <asp:TextBox ID="txtTravelHour" runat="server" MaxLength="2" Width="20px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtTravelHour"
                        Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtTravelHour"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                    -hour delay max $
                    <asp:TextBox ID="txtTravelMax" runat="server" MaxLength="20" Width="60px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtTravelMax"
                        Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtTravelMax"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Missed Travel Connection</label></dt>
                <dd>
                    <asp:TextBox ID="txtMissedTravelConn" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvMissedTravelConn" runat="server" ControlToValidate="txtMissedTravelConn"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revMissedTravelConn" runat="server" ControlToValidate="txtMissedTravelConn"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Travel Overbooked</label></dt>
                <dd>
                    <asp:TextBox ID="txtTravelOverbooked" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvTravelOverbooked" runat="server" ControlToValidate="txtTravelOverbooked"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revTravelOverbooked" runat="server" ControlToValidate="txtTravelOverbooked"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Loss of Personal Money</label></dt>
                <dd>
                    <asp:TextBox ID="txtPersonalMoney" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPersonalMoney" runat="server" ControlToValidate="txtPersonalMoney"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="reversonalMoney" runat="server" ControlToValidate="txtPersonalMoney"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Loss of Travel Documents</label></dt>
                <dd>
                    <asp:TextBox ID="txtTravelDoc" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvTravelDoc" runat="server" ControlToValidate="txtTravelDoc"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revTravelDoc" runat="server" ControlToValidate="txtTravelDoc"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Closure of Travel Agent</label></dt>
                <dd>
                    <asp:CheckBox ID="cbClosure" runat="server" AutoPostBack="true" OnCheckedChanged="ShowClosure" />Included?
                    <asp:TextBox ID="txtClosureTravelAgent" runat="server" MaxLength="20" Width="157px"
                        Visible="false" Text="0"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvClosure" runat="server" ControlToValidate="txtClosureTravelAgent"
                        Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revClosure" runat="server" ControlToValidate="txtClosureTravelAgent"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Home Contents Protection</label></dt>
                <dd>
                    <asp:CheckBox ID="cbHomeContents" runat="server" AutoPostBack="true" OnCheckedChanged="ShowHomeContents" />Included?
                    <asp:TextBox ID="txtFBHCP" runat="server" MaxLength="20" Width="157px" Visible="false"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvFBHCP" runat="server" ControlToValidate="txtFBHCP"
                        Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revFBHCP" runat="server" ControlToValidate="txtFBHCP"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Rental Vehicle Excess</label></dt>
                <dd>
                    <asp:TextBox ID="txtAddCRCR" runat="server" MaxLength="20" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAddCRCR" runat="server" ControlToValidate="txtAddCRCR"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revAddCRCR" runat="server" ControlToValidate="txtAddCRCR"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Hijack</label></dt>
                <dd>
                    <asp:TextBox ID="txtTerrorism" runat="server" MaxLength="20" Width="60px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvTerrorism" runat="server" ControlToValidate="txtTerrorism"
                        Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revTerrorism" runat="server" ControlToValidate="txtTerrorism"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                    /
                    <asp:TextBox ID="txtTerrorismHour" runat="server" MaxLength="2" Width="20px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtTerrorismHour"
                        Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtTerrorismHour"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                    -hour max $
                    <asp:TextBox ID="txtTerrorismMax" runat="server" MaxLength="20" Width="60px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtTerrorismMax"
                        Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ControlToValidate="txtTerrorismMax"
                        Display="Dynamic" ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Kidnap/Hostage</label></dt>
                <dd>
                    <asp:CheckBox ID="cbKidnap" runat="server" AutoPostBack="true" OnCheckedChanged="ShowKidnapRate" />Included?
                    <asp:TextBox ID="txtKidnap" runat="server" MaxLength="20" Width="157px" Visible="false"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvKidnap" runat="server" ControlToValidate="txtKidnap"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revKidnap" runat="server" ControlToValidate="txtKidnap"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Emergency Telephone Charges</label></dt>
                <dd>
                    <asp:CheckBox ID="cbEmergencyTel" runat="server" AutoPostBack="true" OnCheckedChanged="ShowIsActualCost" />Included?
                    <asp:CheckBox ID="cbEmergencyTelActualCost" runat="server" AutoPostBack="true" Visible="false" OnCheckedChanged="ShowEmergencyTelRate" Text="Actual Cost?"  />
                    <asp:TextBox ID="txtEmergencyTelCharges" runat="server" MaxLength="20" Width="157px"
                        Visible="false"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvEmergencyTelCharges" runat="server" ControlToValidate="txtEmergencyTelCharges"
                        ErrorMessage="*">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revEmergencyTelCharges" runat="server" ControlToValidate="txtEmergencyTelCharges"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Policy Writing/Document</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlPolicyDoc" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvPolicyDoc" runat="server" InitialValue="-1" ControlToValidate="ddlPolicyDoc"
                        ErrorMessage="Select Policy document."></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Promotion Message</label></dt>
                <dd>
                    <asp:TextBox ID="txtPromo" runat="server" Width="250px" TextMode="MultiLine"></asp:TextBox><input
                        runat="server" id="inputChars" type="text" readonly="readonly" style="width: 70px;
                        vertical-align: top;" />
                    <asp:RequiredFieldValidator ID="rfvPromo" runat="server" ControlToValidate="txtPromo"
                        ErrorMessage="Enter Promotion message" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revPromo" ControlToValidate="txtPromo" ErrorMessage="Promo message can't exceed 80 characters"
                        ValidationExpression="^[\s\S]{0,80}$" runat="server" SetFocusOnError="true" Display="Dynamic" />
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Auth Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code."></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <%-- <dl>
                <dt>
                    <label>
                        Promotion</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlPromotion" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvPromotion" runat="server" InitialValue="-1" ControlToValidate="ddlPromotion"
                        ErrorMessage="Select Promotion."></asp:RequiredFieldValidator>
                </dd>
            </dl>--%>
        </fieldset>
        <dl>
            <dt>
                <label>
                    Status</label></dt>
            <dd>
                <asp:CheckBox ID="chkTAStatus" runat="server" />
            </dd>
        </dl>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="btnBack" runat="server" CssClass="left_btn" ImageUrl="~/Provider/images/buttons/back1.gif"
                OnClick="btnBack_Click" CausesValidation="false" />
            <asp:ImageButton ID="btnSubmit" runat="server" CssClass="float_btn" ImageUrl="~/Provider/images/buttons/submit1.gif"
                OnClick="btnSubmit_Click" />
            <asp:ImageButton ID="btnDelete" CssClass="floatnext_btn" OnClientClick="return confirm('Are you sure you want to remove this record?');"
                runat="server" ImageUrl="~/Provider/images/buttons/delete1.gif" OnClick="btnDelete_Click" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg"></asp:Label><asp:Label
            ID="lblError" runat="server" ForeColor="Red"></asp:Label>
        <fieldset class="action">
            <asp:LinkButton ID="lnkSummary" runat="server" Text="View Summary" CausesValidation="false"
                OnClick="lnkSummary_OnClick"></asp:LinkButton>
        </fieldset>
        <asp:Panel ID="pnlSummary" runat="server" Visible="false">
            <div style="overflow: auto; width: 100%; height: 160px; display: block; float: left;">
                <asp:GridView ID="grvDetailsSummary" runat="server" AutoGenerateColumns="false" Width="100%"
                    EmptyDataText="Save Travel Insurance to View.">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Font-Size="X-Small" Font-Names="Verdana" />
                    <Columns>
                        <asp:BoundField DataField="PlanName" HeaderText="Plan Name" />
                        <asp:BoundField DataField="PlanType" HeaderText="Plan Type" />
                        <asp:BoundField DataField="TripType" HeaderText="Trip Type" />
                        <asp:BoundField DataField="DTPD_LessYr70" HeaderText="Personal Accident (adult)" />
                        <asp:BoundField DataField="DeathPubTrans" HeaderText="Double Indemnity for Public Conveyance" />
                        <asp:BoundField DataField="MedExp_LessYr70" HeaderText="Medical Expenses (adult)" />
                        <asp:BoundField DataField="EmMedEval" HeaderText="Emergency Medical Evacuation " />
                        <asp:BoundField DataField="BCR" HeaderText="Repatriation & Funeral Expenses" />
                        <asp:BoundField DataField="HospIncome" HeaderText="Hospital Income" />
                        <asp:BoundField DataField="CompassVisit" HeaderText="Overseas Compassionate Visit" />
                        <asp:BoundField DataField="ChildCare" HeaderText="Child Guard" />
                        <asp:BoundField DataField="PersonalLiability" HeaderText="Personal Liability " />
                        <asp:BoundField DataField="BagPerEffect" HeaderText="Loss Baggage & Personal Effect" />
                        <asp:BoundField DataField="BagDelay" HeaderText="Overseas Baggage Delay " />
                        <asp:BoundField DataField="DepositTripCancel" HeaderText="Trip Cancellation/Postponement" />
                        <asp:BoundField DataField="Curtailment" HeaderText="Trip Curtailment" />
                        <asp:BoundField DataField="TravelDelay" HeaderText="Overseas Travel Delay " />
                        <asp:BoundField DataField="MissTravelConnection" HeaderText="Missed Travel Connection " />
                        <asp:BoundField DataField="TravelOverBook" HeaderText="Travel Overbooked " />
                        <asp:BoundField DataField="PersonalMoney" HeaderText="Loss of Personal Money " />
                        <asp:BoundField DataField="TravelDoc" HeaderText="Loss of Travel Documents" />
                        <asp:BoundField DataField="ACRR" HeaderText="Rental Vehicle Excess" />
                        <asp:BoundField DataField="Terrorism" HeaderText="Hijack" />
                        <asp:BoundField DataField="KidnapHostage" HeaderText="Kidnap/Hostage " />
                        <asp:BoundField DataField="EmtelCharge" HeaderText="Emergency Telephone Charges" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" Font-Size="X-Small"
                        Font-Names="Verdana" VerticalAlign="Top" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </div>
        </asp:Panel>
    </div>

    <script type="text/javascript">

        function isMaxLength(txtBox) {

            document.getElementById('<%=inputChars.ClientID%>').value = +txtBox.value.length + '/80 chars';

        }

    </script>

</asp:Content>
